Skip to content

fix: support testing without flasher_args.json (CII-159)#413

Merged
hfudev merged 1 commit intoespressif:mainfrom
Honza0297:fix/only-elf
Apr 15, 2026
Merged

fix: support testing without flasher_args.json (CII-159)#413
hfudev merged 1 commit intoespressif:mainfrom
Honza0297:fix/only-elf

Conversation

@Honza0297
Copy link
Copy Markdown
Contributor

@Honza0297 Honza0297 commented Apr 1, 2026

Description

This allows testing build where only the ELF file is generated without flashable binaries. This can be the case e.g. for linux builds.

Related

Testing


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@github-actions github-actions bot changed the title fix: support testing without flasher_args.json fix: support testing without flasher_args.json (CII-159) Apr 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Title Coverage Tests Skipped Failures Errors Time
3.14 X64 Coverage 103 16 💤 0 ❌ 0 🔥 13m 36s ⏱️
3.10 ARM64 Coverage 103 18 💤 1 ❌ 0 🔥 10m 43s ⏱️
Qemu Coverage 7 0 💤 0 ❌ 0 🔥 24.973s ⏱️

Copy link
Copy Markdown
Member

@hfudev hfudev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. These two places are all using IdfApp, which makes me think calling self.app.is_linux_elf directly is safe. WDYT?

This allows testing IDF_TARGET_LINUX builds (APP_BUILD_TYPE_ELF_ONLY)
even without an esptool flasher_args file present, by skipping flash-
related operations (serial flash, JTAG flash, flash args parsing) when
the build is a Linux host ELF-only output.

Made-with: Cursor
@Honza0297
Copy link
Copy Markdown
Contributor Author

@hfudev Thanks for the review! You were right, I changed getattr(self.app, 'is_linux_elf', False) to self.app.is_linux_elf.

@Honza0297
Copy link
Copy Markdown
Contributor Author

By the way, any idea why the CI is failing? To be honest, I am not sure I understand why it fails in the first place... Thanks!

@hfudev hfudev merged commit fb423e4 into espressif:main Apr 15, 2026
5 of 6 checks passed
@hfudev
Copy link
Copy Markdown
Member

hfudev commented Apr 15, 2026

By the way, any idea why the CI is failing? To be honest, I am not sure I understand why it fails in the first place... Thanks!

me neither...

but i think it's not related to your PR.

Thank you for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants